Hide paging hint when prefix is help-char
authorJustin Burkett <justin@burkett.cc>
Tue, 8 Sep 2020 18:18:21 +0000 (14:18 -0400)
committerJustin Burkett <justin@burkett.cc>
Tue, 8 Sep 2020 18:18:21 +0000 (14:18 -0400)
We can't do paging in this case.

which-key.el

index c08cfd8af643d91d13118b1a8f736a9be104a8c6..a25337f3d9a63ca32fec28747b3969cee8ffb181 100644 (file)
@@ -2125,7 +2125,9 @@ max-lines max-width avl-lines avl-width (which-key--pages-height result))
          (key (if paging-key-bound
                   (concat key " or " which-key-paging-key)
                 key)))
-    (when which-key-use-C-h-commands
+    (when (and which-key-use-C-h-commands
+               (not (string-equal (char-to-string help-char)
+                                  (kbd prefix-keys))))
       (which-key--propertize (format "[%s paging/help]" key)
                              'face 'which-key-note-face))))